package com.hnichr.ump.common.talent.library.entity;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Index;
import javax.persistence.Table;
import java.util.Date;

@Data
@EqualsAndHashCode(callSuper=false)
@Entity
@Table(name = "t_talent_family_member",indexes = {@Index(columnList = "USER_ID_")})
@Schema(description = "人才库-家庭成员")
public class FamilyMember extends Talent {
    /**
     * 称谓
     */
    @Column(name = "APPELLATION_")
    @Schema(description = "称谓")
    private String appellation;

    /**
     * 姓名
     */
    @Column(name = "NAME_")
    @Schema(description = "姓名")
    private String name;

    /**
     * 年龄
     */
    @Column(name = "AGE_")
    @Schema(description = "年龄")
    private Integer age;

    /**
     * 单位
     */
    @Column(name = "COMPANY_")
    @Schema(description = "单位")
    private String company;

    /**
     * 职位
     */
    @Column(name = "POSITION_")
    @Schema(description = "职位")
    private String position;

    /**
     * 政治面貌
     */
    @Column(name = "POLITICS_")
    @Schema(description = "政治面貌")
    private String politics;

    /**
     * 备注
     */
    @Column(name = "REMARK_",columnDefinition="text")
    @Schema(description = "备注")
    private String remark;

    /**
     * 文化程度
     */
    @Column(name = "EDUCATION_")
    @Schema(description = "文化程度")
    private String education;

    /**
     * 出生年月
     */
    @Column(name = "BIRTHDAY_")
    @Schema(description = "出生年月")
    private Date birthday;

    /**
     * 联系电话
     */
    @Column(name = "PHONE_")
    @Schema(description = "联系电话")
    private String phone;

    /**
     * 简历id
     */
    @Column(name = "RESUME_ID_")
    @Schema(description = "简历id")
    private String resumeId;
}
